//
//  FourButtonCollectionViewCell.m
//  OneCreditTreasure
//
//  Created by iOS Grouper on 16/8/26.
//
//

#import "FourButtonCollectionViewCell.h"

@interface FourButtonCollectionViewCell()
@property (nonatomic, strong)UIImageView *myImageView;
@property (nonatomic, strong)UILabel *textL;
@end

@implementation FourButtonCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = LV;
        [self creatView];
    }
    return self;
}

- (void)creatView{
    _myImageView = [UIImageView new];
    _myImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:_myImageView];
    [_myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.contentView);
        make.left.mas_equalTo(self.contentView);
        make.width.mas_equalTo(self.contentView);
        make.height.equalTo(self.contentView).multipliedBy(0.7);
        
    }];
    
    _textL = [UILabel new];
    [self.contentView addSubview:_textL];
    [_textL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.contentView.mas_bottom).offset(-20 * AUTO_HEIGHT);
        make.centerXWithinMargins.mas_equalTo(_myImageView);
        make.height.mas_equalTo(10 * AUTO_HEIGHT);
        
    }];
    _textL.text = @"分期购车";
    _textL.textColor = HS;
    _textL.textAlignment = NSTextAlignmentCenter;
    _textL.font = [UIFont fontWithName:ZIXING size:LITTLETEXTFONT * AUTO_HEIGHT ];
}
@end
